﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Media;
namespace Socket服务器
{
   public  class ColorConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool T = (bool)value;
            if (T)
                return new SolidColorBrush(Color.FromArgb(255, 123, 205, 247));

            else
                return new SolidColorBrush(Color.FromArgb(255, 171, 152, 123));
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
